package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.CalibrationShipCutModel;

import java.util.ArrayList;
import java.util.List;

public class CalibrationShipCutListener extends AnalysisEventListener<CalibrationShipCutModel> {

    private List<CalibrationShipCutModel> results = new ArrayList<>();

    @Override
    public void invoke(CalibrationShipCutModel data, AnalysisContext context) {
        results.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {
    }

    public List<CalibrationShipCutModel> getResults(){return results;}
}
